package com.changgou.order.feign;

import com.changgou.order.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "order")
public interface OrderFeign {

    /***
     * 根据发货状态查询订单列表
     */
    @GetMapping(value = "/consignStatus/{username}/{consignStatus}")
    public List<Order> findOrderByConsignStatus(@PathVariable String username,@PathVariable String consignStatus);
}
